home *** CD-ROM | disk | FTP | other *** search
/ Shareware Super Platinum 8 / Shareware Super Platinum 8.iso / mac / PROGTOOL / CODE32.ZIP;1 / STRCPY.RT < prev    next >
Encoding:
Text File  |  1993-01-09  |  499 b   |  24 lines

  1. public  _strcpy
  2. ;∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞
  3. ; Copy ASCIIZ string to another
  4. ; In:
  5. ;   ESI -> source string
  6. ;   EDI -> destination string
  7. ; Out:
  8. ;   None
  9. ;∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞∞
  10. _strcpy:
  11.         push ax
  12.         push esi
  13.         push edi
  14. strcpyl:
  15.         lodsb
  16.         stosb
  17.         or al,al
  18.         jnz strcpyl
  19.         pop edi
  20.         pop esi
  21.         pop ax
  22.         ret
  23.  
  24.